﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utility;
using Data;
namespace DataAccess
{
    public class Tbl_SubjectBUS
    {
        LinqUtility<tbl_subject> context = new LinqUtility<tbl_subject>();
        public List<tbl_subject> getListSubject()
        {
            return context.GetAll();

        }
        public void insertSubject(tbl_subject ts)
        {
            context.Insert(ts);
        }
        public void updateSubject(tbl_subject ts)
        {
            context.Update(ts);
        }
        public void deleteSubject(tbl_subject ts)
        {
            context.Delete(ts);
        }
    }

    }

